package root.plumbum2;

import java.util.Random;

public class Sessao {

	private String idSessao;
	private Usuario user;
	private Random random = new Random();
	
	public Sessao(Usuario user) {
		this.user = user;
		this.idSessao = user.getLogin() + "#" + String.valueOf((int) (random.nextFloat() * 100000));
	}
	
	public String getIdSessao() {
		return idSessao;
	}
	public Usuario getUsuario(){
		return this.user;
	}


}
